package com.afteryuan.server.command.model;

import java.io.Serializable;

/**
 * Pane 表示每个移动单元格
 * <p/>
 * <p><a href="Pane.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@gmail.com">$Author: Spires Zhang $</a>
 * @version $Revision:$
 */
public class Pane implements Serializable {
    public static final long serialId = 38794L;

    /**
	 * 需要交换深度状态
	 */
	public static final int STATE_DEPTH = 1;

	/**
	 * 可通行状态
	 */
	public static final int STATE_TRANSIT = 0;

	/**
	 * 障碍物状态
	 */
	public static final int STATE_UNTRANSIT = 2;
    
    /**
     * 方向-上
     */
    public static final int DIRECT_UP = 0;
    /**
     * 方向-右上
     */
    public static final int DIRECT_UP_RIGHT = 1;
    /**
     * 方向-右
     */
    public static final int DIRECT_RIGHT = 2;
    /**
     * 方向-右下
     */
    public static final int DIRECT_DOWN_RIGHT = 3;
    /**
     * 方向-下
     */
    public static final int DIRECT_DOWN = 4;
    /**
     * 方向-左下
     */
    public static final int DIRECT_DOWN_LEFT = 5;
    /**
     * 方向-左
     */
    public static final int DIRECT_LEFT = 6;
    /**
     * 方向-左上
     */
    public static final int DIRECT_UP_LEFT = 7;



    /**
	 * 通行状态
	 */
//	public int state;

    /**
	 * 深度
	 */
	public Integer depth;

	/**
	 * 运动方向
	 */
	public Integer direction;

	/**
	 * 组建ID
	 */
//	public String id;

    /**
     * to string method
     * @return String
     */
    public String toString() {
        return "Pane{" +
//                "state=" + state +
                ", direction=" + direction +
                ", depth=" + depth +
//                ", id='" + id + '\'' +
                '}';
    }
}